<?php

namespace App\Containers\AppSection\Signature\Actions;

use App\Containers\AppSection\Signature\Tasks\DownloadSignatureTask;
use App\Containers\AppSection\Signature\UI\API\Requests\DownloadSignatureRequest;
use App\Ship\Parents\Actions\Action;
use Symfony\Component\HttpFoundation\StreamedResponse;

class DownloadSignatureAction extends Action
{
    public function run(DownloadSignatureRequest $request): StreamedResponse
    {
        return app(DownloadSignatureTask::class)->run($request->id);
    }
}
